﻿@model $prjsn$.Common.Models.Services.IArticleModel

@AddControls(
    new Fieldset("w45p mh50 ", Str.Business.Common.Description)
    {
        new DefinitionList(PercentForLabel.p20)
        {
            new TextOrInput().SetSourceProperty(() => Model.Item.Code),

            new TextOrInput().SetSourceProperty(() => Model.Item.Title),
        }
    },
    new Fieldset("w31p mh50 ", "Settings")
    {
        new DefinitionList()
        {
            new AsyncComboBox().SetSourceProperty(() => Model.Item.ArticleCategory),

            new AsyncComboBox().SetSourceProperty(() => Model.Item.ArticleGroup),
        }
    },
    new Fieldset("w20p mh50 ", Str.Business.Common.Identification)
    {
        new DefinitionList(PercentForLabel.p60)
        {
            new CheckBox()
                .SetSourceProperty(() => Model.Item.IsVisible)
                .SetCssClassName(Str.Align.Right),

            new TextOrInput(true)
                .SetSourceProperty(() => Model.Item.ID),
        }
    })